#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @time     : 2016/10/19 16:03
# @Author   : Liu Qingqing
# @File     : forms.py
# @Software : PyCharm
from django import forms
from models import Function


class FunctionForm(forms.ModelForm):
    class Meta:
        model = Function
        # YESNO_CHOICES = [(False, u'未完成'), (True, u'完成')]
        # completion = forms.TypedChoiceField(
        #     widgets=forms.RadioSelect,
        #     coerce=bool,
        #     choices=YESNO_CHOICES,
        #     default=False
        # )

        fields = ['function_point', 'completion']
